How do I reference my LaTeX tables or equations? 您所在的位置:网站首页 latex /tag How do I reference my LaTeX tables or equations?

How do I reference my LaTeX tables or equations?

2024-01-23 07:31| 来源: 网络整理| 查看: 265

To reference a LaTeX table or equation in LaTeX you need to make sure that you insert a label in your table or equation and that such label has a tab: prefix for tables and a eqn: prefix for equations.ExamplesFor example, a simple LaTeX table may look like this:\begin{table} \begin{tabular}{ccccc} 1 & 2 & 3 & 4 & 5 \\ 6 & 7 & 8 & 9 & 10 \\ \end{tabular} \caption{\label{tab:somelabel} Caption} \end{table}Notice the \label{tab:somelabel} inside the \caption .Similarly, a simple LaTeX equation may look like this:\begin{equation} \label{eqn:somelabel} e=mc^2 \end{equation}Notice the \label{eqn:somelabel}.You can reference the tables and equations above from inside a LaTeX block using \ref{tab:somelabel} and \ref{eqn:somelabel}, respectively. Or, you can reference them from inside any other block by clicking on the reference button in the toolbar, ❡:

Updated on: 03/08/2021



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有